package cn.jzq.kotoba.modules.designpattern.observer.weather;

/**
 * @author jzq
 * @date 2018/12/19 16:52
 */
public class ObserverTest {

    public static void main(String[] args) {
//        WeatherData weatherData = new WeatherData();
//        weatherData.setMeasurements(30.0, 65.0, 10.0);
//        CurrentConditionsDisplay currentConditionsDisplay = new CurrentConditionsDisplay(weatherData);
//        weatherData.setMeasurements(20.0, 64.0, 10.0);

        WeatherData2 weatherData2 = new WeatherData2();
        CurrentConditionsDisplay2 currentConditionsDisplay2 = new CurrentConditionsDisplay2(weatherData2);
        weatherData2.setMeasurements(10.0, 20.0, 10.0);
    }
}
